package org.biliviz.be.controller;

import io.swagger.annotations.ApiOperation;
import org.biliviz.be.entity.VhScoreTop;
import org.biliviz.be.service.VhScoreTopService;
import org.biliviz.be.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sg
 * @since 2024-02-16
 */
@RestController
@RequestMapping("/api")
public class VhScoreTopController {
    @Autowired
    VhScoreTopService vhScoreTopService;

    @ApiOperation(value = "标签")
    @GetMapping("vhst")
    public R loginUser() {
        //member对象封装手机号和密码
        //调用service方法实现登录
        //返回token值，使用jwt生成
        List<VhScoreTop> vhst= vhScoreTopService.getAll();
        return R.ok().data("vhst",vhst);
    }
}
